package com.paper.tiger.easy.rpc.s.client.client;

import io.netty.channel.EventLoopGroup;

/**
 * [简要描述]:
 * [详细描述]:
 *
 * @author ZouHaiBo
 * @version 1.0, 2021/6/16 15:26
 * @since JDK 1.8
 */
public class DoveClientConfig
{


    private int port;

    /**
     * 心跳机制,客户端间隔10内秒必须向服务器发送一个心跳包
     */
    private int ideReadTimeOut =10;


    private String host;

    private EventLoopGroup group;

    /**
     * 客户端与服务端保持连接数
     */
    private int connectionNum = 2;



    public int getConnectionNum()
    {
        return connectionNum;
    }

    public void setConnectionNum(int connectionNum)
    {
        this.connectionNum = connectionNum;
    }

    public String getHost()
    {
        return host;
    }

    public void setHost(String host)
    {
        this.host = host == null ? null : "".equals(host.trim()) ? null : host.trim();
    }

    public EventLoopGroup getGroup()
    {
        return group;
    }

    public void setGroup(EventLoopGroup group)
    {
        this.group = group;
    }



    public int getPort()
    {
        return port;
    }

    public void setPort(int port)
    {
        this.port = port;
    }

    public int getIdeReadTimeOut()
    {
        return ideReadTimeOut;
    }

    public void setIdeReadTimeOut(int ideReadTimeOut)
    {
        this.ideReadTimeOut = ideReadTimeOut;
    }
}
